package bluerain;

import java.sql.Timestamp;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Random;

import bluerain.controller.MultiObjectController;
import bluerain.model.MultiObject;

public class Main {

	public static void main(String[] args) {
		MultiObject multiObject = new MultiObject();
		
		multiObject.setId(1);
		multiObject.setDate("");
		multiObject.setTitle("Test title");
		multiObject.setContent("Test Content");
		
//		for (int i = 0; i < 20; i++) {
//			System.out.println("Title: " + multiObject.getTitle());
//			System.out.println("Date: " + multiObject.getDate());
//			System.out.println("Content: " + multiObject.getContent());
//			System.out.println("");
//		}
		
		MultiObjectController controller = new MultiObjectController();
		controller.save(multiObject);
		List<MultiObject> listMultiObject = controller.getAllMultiObjectList();
		int size = listMultiObject.size();
		System.out.println("Size: " + size + "\nMultiObject:" + listMultiObject.get(0).getTitle());
		
	}

}
